// 引入创建 store 的核心方法
import { createStore, applyMiddleware } from 'redux'
// 引入所有的 reducer
import allReducers from './reducers/index'

// 引入异步中间件
import thunk from 'redux-thunk'
import { composeWithDevTools } from 'redux-devtools-extension'

export default createStore(
  allReducers,
  composeWithDevTools(applyMiddleware(thunk))
)
